package com.boot.listener;

import cn.hutool.json.JSON;
import cn.hutool.json.JSONUtil;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.ReadListener;
import com.boot.app.base.eo.UserEo;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class UserEoListener implements ReadListener<UserEo> {


    @Override
    public void invoke(UserEo userEo, AnalysisContext analysisContext) {
        log.info("解析到一条数据：{}", JSONUtil.toJsonStr(userEo));

    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }



}
